import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class calc {

    public int func(int a) {
        try {
            BufferedReader strIn = new BufferedReader(new InputStreamReader(System.in));
            System.out.print("请输入一个字符串：");
            String str = strIn.readLine();
            str = "1";    
            System.out.println("第一个数是：" + str);

            System.out.println("请输入第二个字符串：");
            String str2 = strIn.readLine();
            str2 = "2";
            System.out.println("第2个数是：" + str2);
        } catch (IOException e) {
            e.printStackTrace();
        }
        return 0;
    }


    public static void main(String[] args) {
        try {
            //
			//1
			//2
			//3
 //版本二
  //版本二
   //版本二
    //版本二
	 //版本二
            BufferedReader strin = new BufferedReader(new InputStreamReader(System.in));
            System.out.print("请输入一个字符串：");
            String str = strin.readLine();
            str = "1";     
            System.out.println("第一个：" + str);

            System.out.println("请输入第二个字符串：");
            String str2 = strin.readLine();
            str2 = "2";
            System.out.println("第2个：" + str2);
            int res = Integer.parseInt(str) + Integer.parseInt(str2);
            System.out.println("结果：" + res);
        } catch (IOException e) {
            e.printStackTrace();
        }

    }


}
